from Algorithms import all_pyth_triples
import itertools
import Numbers

N = 100000000
print len(list(itertools.ifilter(lambda x: x[2] % (x[1] - x[0]) == 0, itertools.imap(lambda x: sorted(x), all_pyth_triples(N)))))



